<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page contentType = "text/html; charset=UTF-8" %>


<html>
<head>
<c:set var="cssFileName">
	<c:out value="${crudViewMeta.cssFileName}" default="default.css"/>
</c:set>
<link rel="stylesheet" href="<c:url value='/css/${cssFileName}'/>" type="text/css">

<title><c:out value="${crudMeta.title}"/>数据查看页面</title>

</head>
<body>

<table class="top" align="center">
	<tr><td class="headtitle">编辑<c:out value="${crudMeta.title}"/></td></tr>
</table>

<table class="content">
	  <c:forEach items="${crudMeta.columnMetas}" var="col">
	  	
	  	<tr class="body">
      		<td class="head"><c:out value="${col.title}"/></td>
      		<td>
  			<c:if test="${empty col.dictName || !col.needDictReplace}">
  					<c:out value='${result.mapContent[col.colName]}'/>
  			</c:if>
  			<c:if test="${not empty col.dictName && col.needDictReplace}">
  				<c:out value="${col.dictMap[result.mapContent[col.colName]]}"/>
  			</c:if>
      		</td>
      	</tr>
      	
	  </c:forEach>	
</table>
	<br>

<table>
	<tr align="center" valign="center">
		<td align="left" width="50%">
			<input type="button" name="back" value="返回" onclick="javascript:window.history.back()">
		</td>
		<td width="50%">
		</td>
	</tr>
</table>
 	
</form>
</body>
</html>